import {LODINGSWITCH} from '../constant'
export default function LodingReducer(prevState = {isLoding:false}, action) {
  let { type, data } = action
  switch (type) {
    case LODINGSWITCH:
      let newState = { ...prevState }
      newState.isLoding = data
      return newState
    default:
      return prevState
  }
}